﻿package events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Slavshik Alexander
	 */
	public class QueryErrorEvent extends Event 
	{
		/**
		 * Если пустой альбом у пользователя
		 */
		public static const NO_PHOTOS:String = "nphotos";
		public static const INVALID_ANSWER:String = "ianswer";
		public static const SERVER_ERROR:String = "serror";
		
		public var code:int = -1;
		public var msg:String = "undefined error";
		
		public function QueryErrorEvent(type:String, code:int = -1) { 
			this.code = code;
			super(type);
		} 
		public override function toString():String { 
			return formatToString("QueryErrorEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}